//-----------------------------------------------------------------------
#ifndef CFileProxyH
#define CFileProxyH
//-----------------------------------------------------------------------
#include <iostream>

#include <sys/stat.h>
#include <dirent.h>

#include "soap/baseCFactoryProxy.h"

#include "file/CFile.h"
#include "CMIMEClientCallback.h"

using namespace base;
using namespace std;
//-----------------------------------------------------------------------
class CFileProxy
{
private:
	string url;
	int port;

	string repository_path;

	CFactoryProxy *file_proxy;
	CMIMECallback *mime;

	string &replace_file_path(string &path, string &file);
	int parameterize(const char *file, const char *repository_path, struct cubex__Data *data);

public:
	CFileProxy(char *host, int port);
	virtual ~CFileProxy();

	int repository(char *repository_path);

	int put(char *file);
	int get(char *file);
};
//-----------------------------------------------------------------------
#endif
